﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GoodPic_Edit.aspx.cs" Inherits="Page_GoodPic_Edit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>图片列表</title>
    
    <style type="text/css">
        body
        {
            font-family: "宋体";
            color: #3C3C3C;
            font-size: 10pt;
            line-height: 14pt;
            margin-left: 0px;
            margin-right: 0px;
            margin-top: 0px;
        }
        .a:link
        {
            color: #000000;
            text-decoration: none;
        }
        .a:active
        {
            color: #000000;
            text-decoration: none;
        }
        .a:visited
        {
            color: #000000;
            text-decoration: none;
        }
        .a:hover
        {
            color: #000000;
            text-decoration: underline;
        }
        .black12
        {
            font-size: 12px;
            color: #333333;
            font-family: "tahoma";
            line-height: 18px;
        }
        .black12 A:link
        {
            color: #333333;
            text-decoration: none;
        }
        .black12 A:active
        {
            color: #333333;
            text-decoration: none;
        }
        .black12 A:visited
        {
            color: #333333;
            text-decoration: none;
        }
        .black12 A:hover
        {
            color: #333333;
            text-decoration: underline;
        }
        .orange12
        {
            font-size: 12px;
            color: #ff6600;
            font-family: "tahoma";
            line-height: 18px;
            font-weight: bold;
        }
        .orange12 A:link
        {
            color: #ff6600;
            text-decoration: none;
        }
        .orange12 A:active
        {
            color: #ff6600;
            text-decoration: none;
        }
        .orange12 A:visited
        {
            color: #ff6600;
            text-decoration: none;
        }
        .orange12 A:hover
        {
            color: #ff6600;
            text-decoration: underline;
        }
        .style3
        {
            width: 20%;
        }
        .photo
        {
            padding: 2px;
            border: 1px solid #CCCCCC;
            background-color: #FFFFFF;
        }
        .in_p
        {
            height: 18px;
            border: 1px solid #21517F;
            font-family: "Arial" ,;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC">
            <tr>
                <td bgcolor="#FFFFFF" style="text-align:center;">                      
                    <strong><asp:Label ID="labGoodName" runat="server"></asp:Label> -- 图片列表</strong>
                </td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF">
                    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
                        <tr>
                            <td bgcolor="#FFFFFF">
                                <table width="150" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td height="8">
                                        </td>
                                    </tr>
                                </table>
                                <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <asp:DataList runat="server" ID="ImageList" RepeatDirection="Horizontal" Width="100%"
                                                RepeatColumns="3" onitemdatabound="ImageList_ItemDataBound" onitemcommand="ImageList_ItemCommand">
                                                <ItemTemplate>
                                                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                        <tr>
                                                            <td width="21">
                                                                <asp:CheckBox runat="server" ID="chk" />
                                                            </td>
                                                            <td>
                                                                <img src='../<%# Eval("GoodPic_Small")%>' alt="" id="img" class="photo" />
                                                                <input id="hdBiglPic" runat="server" value='<%# Eval("GoodPic_Big")%>' type="hidden" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td>
                                                                &nbsp;
                                                            </td>
                                                            <td height="22" class="black12">
                                                                <asp:TextBox ID="tbID" runat="server" Text='<%# Eval("ID") %>' Visible="false"></asp:TextBox>
                                                                <asp:TextBox ID="tbisShow" runat="server" Text='<%# Eval("isShow") %>' Visible="false"></asp:TextBox>                                                                
                                                                <asp:Label runat="server" ID="imgName" Text='<%# Eval("Description") %>' Visible="false"></asp:Label>
                                                                <asp:CheckBox ID="cbisShow" runat="server" Text="是否显示" />
                                                               
                                                                <asp:Button ID="btnUpdate" runat="server" Text="更新状态" CommandName="btnUpdate" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td height="5" colspan="2">
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ItemTemplate>
                                            </asp:DataList>
                                        </td>
                                    </tr>
                                </table>
                                <table width="150" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td height="8">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF">
                    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                            <td height="10" colspan="4">
                            </td>
                        </tr>
                        <tr>
                            <td style="padding: 2px 2px 2px 2px;" colspan="4">
                                <asp:ImageButton runat="server" ID="imgSelectAll" ImageUrl="../Images/pic_botton_5.jpg"
                                    OnClick="imgSelectAll_Click" /> &nbsp;
                                <asp:ImageButton runat="server" ID="imgDelete" ImageUrl="../Images/pic_botton_4.jpg"
                                    OnClick="imgDelete_Click" />&nbsp;
                                <asp:Label runat="server" ID="lblDeleteInfo" ForeColor="Red"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td height="10" colspan="4">
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                <input id="File1" type="file" runat="server" />&nbsp;描述：<asp:TextBox ID="tbDescription1" runat="server"></asp:TextBox>
                              <br />
                                <input id="File2" type="file" runat="server" />&nbsp;描述：<asp:TextBox ID="tbDescription2" runat="server"></asp:TextBox>
                               <br />
                                <input id="File3" type="file" runat="server" />&nbsp;描述：<asp:TextBox ID="tbDescription3" runat="server"></asp:TextBox>
                                <br />
                                <input id="File4" type="file" runat="server" />&nbsp;描述：<asp:TextBox ID="tbDescription4" runat="server"></asp:TextBox>
                                <br />
                                <input id="File5" type="file" runat="server" />&nbsp;描述：<asp:TextBox ID="tbDescription5" runat="server"></asp:TextBox>
                                <br />
                                <asp:Button ID="ImageUpLoad" runat="server" Text="上传" 
                                    onclick="ImageUpLoad_Click" Width="40px"  />
                            </td>
                        </tr>
                        <tr>
                            <td height="10" colspan="4">
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td bgcolor="#FFFFFF">
                    <table bgcolor="#FFFFFF" border="0" cellpadding="0" cellspacing="0" width="95%"
                        style="text-align: center" id="PageColumn" runat="server" align="center">
                        <tr>
                            <td align="right" class="black12" style="height: 43px">
                                &nbsp; 共
                                <asp:Label ID="TotalCount" runat="server"></asp:Label>
                                <span style="height: 24px"></span>条
                                <asp:LinkButton ID="lnkPrev" runat="server" OnClick="lnkPrev_Click">上一页</asp:LinkButton>
                                当前为：<font color="#ff0000"><asp:Label ID="PageIndex" runat="server" Text="1"></asp:Label></font>/<asp:Label
                                    ID="MaxPage" runat="server" Text="1"></asp:Label>页
                                <asp:LinkButton ID="lnkNext" runat="server" OnClick="lnkNext_Click">下一页</asp:LinkButton>
                                每页<asp:Label ID="PSize" runat="server"></asp:Label>条&nbsp;&nbsp;&nbsp;
                            </td>
                            <td class="black12" style="padding-top: 3px; height: 43px; width: 80px;" align="right">
                                转到第&nbsp;
                            </td>
                            <td class="black12" align="center" width="90px" tyle="padding-top:3px; height: 43px;">
                                <asp:DropDownList ID="selectPage" runat="server" Width="80px" Height="18px" AutoPostBack="True"
                                    OnSelectedIndexChanged="ddl_SelectedIndexChanged">
                                </asp:DropDownList>
                            </td>
                            <td class="black12" align="left" style="padding-top: 3px; height: 43px; width: 50px;">
                                &nbsp;页
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    <asp:HiddenField ID="hfGoodID" runat="server" Value="1" />
    </form>
</body>
</html>
